package demo.classs;



public class InnerClass {
	public static void main(String[] args)
	{
		OuterClass outcl = new OuterClass();
		outcl.setValue("Test Inner Class");
		outcl.printData();
		OuterClass.value = "";
	}
}

class OuterClass
{
	static String value;
	public void setValue(String value)
	{
		System.out.println("in tai outer class: " + value);
		OuterClass.value = value;
	}
	public void printData()
	{
		InnerClass innercl = new InnerClass();
		innercl.print();
	}
	public static class InnerClass{
		static String newValue = "";
		public static void print()
		{
			newValue = value + " InnerClass";
			System.out.println("in tai inner class: " + newValue);
		}
	}
	
	class InnerClass2{
		
	}
	
}
